import 'package:flutter/material.dart';
import 'package:flutter_color_plugin/flutter_color_plugin.dart';

class ResPage extends StatefulWidget {
  const ResPage({super.key});

  @override
  State<ResPage> createState() => _ResPageState();
}

class _ResPageState extends State<ResPage> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(seedColor: ColorUtil.color('00ff00')),
      ),
      home: Scaffold(
        appBar: AppBar(
          title: Text('资源'),
        ),
        body: const Center(
          child: Image(
            image: AssetImage('images/dan.jpg'),
            width: 300,
            height: 300,
          ),
        ),
      ),
    );
  }
}
